package com.example.courseselectionsystemconsume.pojo;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2021/1/7 16:16
 * Role of: 选课记录表
 * @version: v1.0
 */
//@Component
public class CourseRecord {
    public CourseRecord(){}
    public CourseRecord( Integer userId, Integer courseId, Integer semesterId, Integer worth) {
        this.userId = userId;
        this.courseId = courseId;
        this.semesterId = semesterId;
        this.worth = worth;
    }

    public CourseRecord(Integer id, Integer userId, Integer courseId,
                        Integer semesterId, Integer ifTheSelected, Integer worth) {
        this.id = id;
        this.userId = userId;
        this.courseId = courseId;
        this.semesterId = semesterId;
        this.ifTheSelected = ifTheSelected;
        this.worth = worth;
    }

    private Integer id;
    private Integer userId;//选课人
    private Integer courseId;//课程Id
    private Integer semesterId;//表示你那个学期选的课
    private Integer ifTheSelected;//表示你是否退课 0未退课  1退课
    private Integer worth;//选课所获取的分数

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(Integer semesterId) {
        this.semesterId = semesterId;
    }

    public Integer getIfTheSelected() {
        return ifTheSelected;
    }

    public void setIfTheSelected(Integer ifTheSelected) {
        this.ifTheSelected = ifTheSelected;
    }

    public Integer getWorth() {
        return worth;
    }

    public void setWorth(Integer worth) {
        this.worth = worth;
    }

    @Override
    public String toString() {
        return "CourseRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", courseId=" + courseId +
                ", semesterId=" + semesterId +
                ", ifTheSelected=" + ifTheSelected +
                ", worth=" + worth +
                '}';
    }
}
